package com.fangshicai.service.imple;


import com.fangshicai.bean.Student;
import com.fangshicai.mapper.StudentMapper;
import com.fangshicai.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName StudentService
 * @Description TODO
 * @Author fangshicai
 * @Date 2021/7/18 10:43
 */
@Service
public class StudentServiceimple implements StudentService {
    @Autowired
    StudentMapper studentMapper;

    public Student queryStudentById(int id){
        return studentMapper.queryStudentById(id);
    }
    public List<Student> queryAllStudent(){
        return studentMapper.queryAllStudent();
    }

}
